from django.conf.urls import url
from django.contrib import admin
from  . import views

from rest_framework.routers import DefaultRouter
urlpatterns = [
    # url(r'^books/$', views.Books.as_view()),
    # url(r'^books/(?P<pk>\d+)$', views.Book.as_view()),
]

router=DefaultRouter()
router.register('books',views.BookViewSet)

urlpatterns +=router.urls